import java.awt.Dimension;
import java.awt.Graphics;

import javax.swing.ImageIcon;
import javax.swing.JPanel;


public class Fondo extends JPanel{
	ImageIcon imagen;
	public Fondo(){
		super();
		inicializar();
		imagen=new ImageIcon("imagenes/simu.png");
		setSize(imagen.getIconWidth(),imagen.getIconHeight());
	}
	public void paint(Graphics g){
		//Dimension d=getSize();
		g.drawImage(imagen.getImage(),0,0,getWidth(),getHeight(),null );
		this.setOpaque(false);
		super.paint(g);
	}
	private void inicializar() {
		this.setSize(100,100);
		
		
	}

}
